package string;

public class ToUpperCaseDemo {
    public static void main(String[] args) {
        String a = "    hello,java     ";
        String b = a.trim().toUpperCase();
        String c = b.toLowerCase();
        System.out.println(b);
        System.out.println(c);
    }
}
